package com.mcxx.modules.temporary.family.service.read;

import com.mcxx.modules.miniSalvation.family.dto.FamilyMemberDTO;
import com.mcxx.modules.miniSalvation.family.entity.FamilyMemberHistoryEntity;
import com.mcxx.modules.system.dto.ConfirmListMemberDTO;
import com.mcxx.modules.temporary.family.dto.TmpFamilyMemberDTO;
import com.mcxx.modules.temporary.family.entity.TmpFamilyMemberEntity;
import com.mcxx.modules.temporary.family.entity.TmpFamilyMemberHistoryEntity;
import com.mcxx.modules.temporary.family.dao.read.TmpFamilyMemberHistoryReadDao;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@TaTransactional(readOnly = true)
public class TmpFamilyMemberHistoryReadService {

    @Autowired
    private TmpFamilyMemberHistoryReadDao tmpFamilyMemberHistoryReadDao;

    
    public List<TmpFamilyMemberHistoryEntity> listAll() {
    	return tmpFamilyMemberHistoryReadDao.listAll();
    }

    
    public List<TmpFamilyMemberHistoryEntity> listByOrderId(String orderId) {
        return tmpFamilyMemberHistoryReadDao.listByOrderId(orderId);
    }

    
    public TmpFamilyMemberHistoryEntity getById(String id) {
    	return tmpFamilyMemberHistoryReadDao.getById(id);
    }
    
    public TmpFamilyMemberDTO getByIdAndBusinessCode(String id, String businessCode) {
        return tmpFamilyMemberHistoryReadDao.getByIdAndBusinessCode(id,businessCode);
    }
    
    public List<TmpFamilyMemberDTO> getByFamilyId(String familyId, String orderId, String isSaveObject) {
        return tmpFamilyMemberHistoryReadDao.getByFamilyId(familyId, orderId, isSaveObject);
    }
    
    public List<ConfirmListMemberDTO> selectConfirmMemberDTO(String orderId){
        return tmpFamilyMemberHistoryReadDao.selectConfirmMemberDTO(orderId);
    }
}
